package com.yaodian100.ec.adlog.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.yaodian100.core.common.entity.BaseEntity;

@Entity
@Table(name = "EC_ADLOG_DAILY")
public class AdLogDaily extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4473996830733721288L;

	/**
	 * 系統流水號
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "seq_ec_adlog_daily")
	@SequenceGenerator(name = "seq_ec_adlog_daily", sequenceName = "SEQ_EC_ADLOG_DAILY")
	@Column(name = "ID")
	private Long id;

	/**
	 * 渠道编号
	 */
	@Column(name = "CHANNEL_ID", nullable = false)
	private Long channelId;

	/**
	 * Log日期
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "LOG_DATE")
	private Date logDate;

	@Column(name = "CLICK_COUNT")
	private int clickCount;

	@Column(name = "CLICK_SUM")
	private int clickSum;

	public Date getLogDate() {
		return logDate;
	}

	public void setLogDate(Date logDate) {
		this.logDate = logDate;
	}

	public int getClickCount() {
		return clickCount;
	}

	public void setClickCount(int clickCount) {
		this.clickCount = clickCount;
	}

	public Long getId() {
		return id;
	}

	public Long getChannelId() {
		return channelId;
	}

	public void setChannelId(Long channelId) {
		this.channelId = channelId;
	}

	public int getClickSum() {
		return clickSum;
	}

	public void setClickSum(int clickSum) {
		this.clickSum = clickSum;
	}

}